<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>热门微博</title>
<link rel="stylesheet" type="text/css" href="css/other.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="iecss.css" />
<![endif]-->
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/home.js"></script>
<script type="text/javascript" src="js/weibo_ajax.js"></script>
<script type="text/javascript" src="js/weibo_counter.js"></script>

<script type="text/javascript">     

	/*隐藏与打开评论框*/ 
   	$(document).ready(function(){
   		$("div#comment_box").hide();
   	});
   	$("[href='##']").click(function(){
		$("#comment_box").toggle();
		return false;
	});
</script>
<body onload="startdate(),startTime()">

<?php
include_once 'msg_redirect.php';	/*通过使用cookie，当检查出未登陆，则不予进入home.php，返回index.php*/
if($_COOKIE['TTU'] != "logined"){
	msg_redirect("您还未登录哦！", "index.php");
}?>

<div id="main_container">

	<div id="header" >

       <div class="top_right">
       
            <div class="weather">
              <div class="weather_text" id="date"></div>
              <div class="weather_text" id="time"></div>
              <div class="weather_img">
              <a href="#"><img src="image/w_cloudy.png" border="0" width="60" height="60"/></a></div>
            </div>
            
            <div class="big_banner">
            <a href="#"><img src="image/life.jpg" border="0" width="180" height="100"/></a>
            <a href="#"><img src="image/love.jpg"  border="0" width="180" height="100"/></a>
            <a href="#"><img src="image/reading.jpg" border="0" width="180" height="100"/></a>
         </div>
        
        </div>
    
  
        <div id="logo">
            <a href="index.html"><img src="image/logo.png" alt="" title="" border="0" width="240" height="125" /></a>
	    </div>
        

        

    </div>
    
   <div id="main_content"> 
   
            <div id="menu_tab">
                    <ul id="menu">
                    	<li><a href="home.php">首 页</a></li>
                        <li><a href="#">热 门  <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="hotpeople.php">微博达人</a></li>
        						<li><a href="hotweibo.php">热门微博</a></li>
      						</ul>
                      </li>
                         <li><a href="#">应 用 <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="photo.php">相册</a></li>
        						<li><a href="collection.php">收藏</a></li>
                                <li><a href="find.php">找人</a></li>
        						<li><a href="#">我的课表</a></li>
        						<li><a href="#">公文通</a></li>
      						</ul>
                         </li>                                                   
                         <li><a href="my_weibo.php">我的主页</a></li>

                         <li><a href="#">消 息  <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="comment.php">查看评论</a></li>
        						<li><a href="cencerns_from.php">查看粉丝</a></li>
        						<li><a href="my_concerns.php">查看关注</a></li>
      						</ul>
                         </li>                     
                         <li><a href="#">帐 号  <img src="image/more.png" /></a>
                         	<ul>
        						<li><a href="account_info">帐号设置</a></li>
        						<li><a href="logout.php">注销</a></li>
      						</ul>
                         </li>
                         
                    </ul>

            </div><!-- end of menu tab -->
            
    



   <div class="center_content">
     <div class="center_title"><img src="image/hot_title2.png" width="200" height="60"/></div>
     <div id="photo_box">
     	<div class="photo_box1">
     	<?php 
     	/*输出微博相片*/
        include_once 'sql_connect.php';
        $u_no = $_COOKIE['u_no']; 
    	$photo_sql2 = mysql_query("select p_data from photo where u_no='$u_no'",$connection);
    	$photo_result2 = mysql_fetch_array($photo_sql2);
    	$my_data = $photo_result2[p_data];
    	if(!$my_data){
    		?>
    		<img src="image/none.png" width="150" height="150"/>
            <h2>微博相册</h2>
    		<?php 
    	}
    	else{
     	?>
        	<a href="photo_weibo.php"><img  src='<?php echo "$my_data"; ?>' width="150" height="150"/>
            <h2>微博相册</h2></a><?php }?>
        </div>
        <div class="photo_box1">
        <?php 
     	/*输出微博相片*/
        include_once 'sql_connect.php';
        $u_no = $_COOKIE['u_no']; 
    	$head_sql = mysql_query("select h_data from head where u_no='$u_no'",$connection);
    	$head_result = mysql_fetch_array($head_sql);
    	$my_data = $head_result[h_data];
    	if(!$my_data){
    		    		?>
    		<img src="image/none.png" width="150" height="150"/>
            <h2>头像相册</h2>
    		<?php 
    	}
    	else{
     	?>
        	<a href="photo_head.php"><img src='<?php echo "$my_data"; ?>' width="150" height="150"/>
            <h2>头像相册</h2></a><?php }?>
        </div>
     </div>
   
   </div><!-- end of center content -->




            
   </div><!-- end of main content -->
   
   
   
   <div class="footer">深圳大学计算机与软件学院@毕业设计项目网站<br />指导老师：王华明<br />项目负责：陈作鑫<br />
    小组成员：陈作鑫&nbsp;&nbsp;陈志杰&nbsp;&nbsp;赖晓东
    </div>                 


</div>
<!-- end of main_container -->
</body>
</html>